﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Linq.Expressions;

namespace AirLinq.Meta {
	public class MetaProperty : MetaMember {
		private readonly FieldInfo _storage;
		public MetaProperty(PropertyInfo member, string columnName, LambdaExpression expression, bool primaryKey, FieldInfo storage)
			: base(member, columnName, expression, primaryKey) {
			_storage = storage;

		}
		public FieldInfo Storage {
			get {
				return _storage;
			}
		}
		public PropertyInfo Property {
			get {
				return (PropertyInfo)Member;
			}
		}
	}
}
